package com.project.myxima.interfaces;

import com.ximalaya.ting.android.opensdk.model.album.Album;
import com.ximalaya.ting.android.opensdk.model.track.Track;

import java.util.List;

public interface IAlbumDetailViewCallback {

    /**
     * 专辑详情内容加载出来
     *
     * @param tracks
     */
    void onDetailListLoaded(List<Track> tracks);

    /**
     * 网络错误
     */
    void onNetworkError(int errorCode, String errorMsg);

    /**
     * 把Album传给UI
     * @param album
     */
    void onAlbumLoaded(Album album);

    /**
     * act depends on the size of the new tracks
     * @param trackSize
     */
    void onLoadMoreFinish(int trackSize);


    /**
     * similar to the above method
     * @param trackSize
     */
    void onRefreshFinish(int trackSize);
}
